

import 'package:flutter_enjoy_plus/constants/index.dart';
import 'package:flutter_enjoy_plus/utils/RequestDio.dart';
//登录 发送验证码
Future getCodeAPI(params) {
  return requestDio.get(HTTP_PATH.LOGIN_CODE, params: params);
}
//登录提交
Future loginAPI(data) {
  return requestDio.post(HTTP_PATH.LOGIN, data: data);
}
//用户资料
Future getUserInfoAPI() {
  return requestDio.get(HTTP_PATH.USER_INFO);
}
// Future<dynamic> getUserInfoAPI() => requestDio.get(HTTP_PATH.USER_INFO);

//更新用户信息
Future updataUserInfoAPI(data) {
  return requestDio.put(HTTP_PATH.USER_INFO, data: data);
}

// 上传图片或头像
Future uploadImageAPI(data) =>
    requestDio.upload(HTTP_PATH.UPLOAD_IMAGE, data: data);